﻿using GBlog.Core.Entities;
using System.Data.Entity;
namespace GBlog.Core.Mapping
{
    public class ThemeMap : MapBase<Theme, int>
    {
        public ThemeMap()
        {
            ToTable("Core_Theme");
            RegisterID();
            Property(t => t.Name).IsRequired().HasMaxLength(128);
            Property(t => t.FolderName).IsRequired().HasMaxLength(32);
            Property(t => t.IsDefault).IsRequired();
            Property(t => t.Author);
            RegisterDefault();
        }
    }
}